<template>
  <div>
    <TypeNav v-tgt="666" />
    <ListContainer />
    <Recommend />
    <Rank />
    <Like />
    <Floor v-for="floor in floors" :key="floor.id" :floor="floor" />
    <Brand />
  </div>
</template>

<script>
import ListContainer from "@/page/Home/ListContainer";
import Recommend from "@/page/Home/Recommend";
import Rank from "@/page/Home/Rank";
import Like from "@/page/Home/Like";
import Floor from "@/page/Home/Floor";
import Brand from "@/page/Home/Brand";
import { mapState } from "vuex";
export default {
  name: "Home",
  components: {
    ListContainer,
    Recommend,
    Rank,
    Like,
    Floor,
    Brand,
  },
  mounted() {
    this.$store.dispatch("home/getFloors");
  },
  computed: {
    ...mapState("home", ["floors"]),
  },
};
</script>

<style></style>
